#include "StdAfx.h"
/// Copyright 2012, Alex Averian, Yonan Research
/// Released under BSD Licence

 
#include "qbutton.h"

using namespace micro::gui;


QButton::QButton(const QString  label )
{
	m_label = label;
}

QButton::~QButton(void)
{
}



bool QButton::Create(QWindow *parent, int id, UINT style)
{
	 CreateBaseWindow(  GetWndClassName() , m_label ,style
			|WS_CHILD
			|WS_VISIBLE 			 
			,m_rect,
			parent, id  );


	return (_window != nullptr);
}
bool QButton::Create(const QString & label, QRect rect , QWindow *parent,   int id, UINT style)
{
	m_label = label;
	m_rect  = rect;
	bool bo =  Create(parent, id,style);


	/*if(bo)
	{
		bo = SubclassWindow();
	}*/
	return bo;


}